/*
 * Created on Sep 28, 2006
 */
package com.scalar.chiptrack.operations.distributor.forms;

import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.operations.distributor.DistLineItem;

/**
 * @author ravi
 */
public class DistributorSalesForm extends ChipTrackActionForm 
{
	int distSalesOrderId    = -1;
    int endCustomerId       = 0;

    String salesOrderNo         = "";
	String customerPO           = "";
	String customer_Id          = "";
	String distributorId        = "";
	String shipDate             = null;
    String salesOrderDate       = null;
	String newEndCustomerName   = null;
    String Status               = null;

    private int  distributorSalesOrder  = 0;


    ArrayList lineItemList  = null;

	public int getDistSalesOrderId() {
		return distSalesOrderId;
	}
	/**
	 * @param distSalesOrderId The distSalesOrderId to set.
	 */
	public void setDistSalesOrderId(int distSalesOrderId) {
		this.distSalesOrderId = distSalesOrderId;
	}
	/**
	 * @return Returns the distributorId.
	 */
	public String getDistributorId() {
		return distributorId;
	}
	/**
	 * @param distributorId The distributorId to set.
	 */
	public void setDistributorId(String distributorId) {
		this.distributorId = distributorId;
	}
	/**
	 * @return Returns the customer_Id.
	 */
	public String getCustomer_Id() {
		return customer_Id;
	}
	/**
	 * @param customer_Id The customer_Id to set.
	 */
	public void setCustomer_Id(String customer_Id) {
		this.customer_Id = customer_Id;
	}
	/**
	 * @return Returns the customerPO.
	 */
	public String getCustomerPO() {
		return customerPO;
	}
	/**
	 * @param customerPO The customerPO to set.
	 */
	public void setCustomerPO(String customerPO) {
		this.customerPO = customerPO;
	}
	/**
	 * @return Returns the lineItemList.
	 */
	public ArrayList getLineItemList() {
		return lineItemList;
	}
	/**
	 * @param lineItemList The lineItemList to set.
	 */
	public void setLineItemList(ArrayList lineItemList) {
		this.lineItemList = lineItemList;
	}
	/**
	 * @return Returns the salesOrderNo.
	 */
	public String getSalesOrderNo() {
		return salesOrderNo;
	}
	/**
	 * @param salesOrderNo The salesOrderNo to set.
	 */
	public void setSalesOrderNo(String salesOrderNo) {
		this.salesOrderNo = salesOrderNo;
	}

    public String getShipDate() {
        return shipDate;
    }

    public void setShipDate(String shipDate) {
        this.shipDate = shipDate;
    }

    public String getSalesOrderDate() {
        return salesOrderDate;
    }

    public void setSalesOrderDate(String salesOrderDate) {
        this.salesOrderDate = salesOrderDate;
    }


    public int getEndCustomerId() {
        return endCustomerId;
    }

    public void setEndCustomerId(int endCustomerId) {
        this.endCustomerId = endCustomerId;
    }

    public void reset( ActionMapping mapping, HttpServletRequest request )
	{
		if( lineItemList == null || lineItemList.isEmpty() == true )
		{
			lineItemList = new ArrayList();
			lineItemList.add( new DistLineItem() );
			lineItemList.add( new DistLineItem() );
		}
	}

    public String getNewEndCustomerName() {
        return newEndCustomerName;
    }

    public void setNewEndCustomerName(String newEndCustomerName) {
        this.newEndCustomerName = newEndCustomerName;
    }

    public String getStatus() {
        return Status;
    }

    public void setStatus(String status) {
        Status = status;
    }


    public int getDistributorSalesOrder() {
        return distributorSalesOrder;
    }

    public void setDistributorSalesOrder(int distributorSalesOrder) {
        this.distributorSalesOrder = distributorSalesOrder;
    }
}
